package com.hz.house.common;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import org.springframework.stereotype.Component;

/**
 * 	通用线程池
 * @author 10203
 *
 */


@Component
public class ThreadPool {

	
	private ExecutorService ex = Executors.newFixedThreadPool(20);
	
	
	public void runInThreadPool(Runnable worker) {
		ex.execute(worker);
	}
	
	
	
}
